﻿<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>1233214</title>
    <script type="text/javascript">
        function SecondToTime(sec) {
            //var sec = "sjdfklsd";
            var hour = 0;
            var minite = 0;
            var second = 0;
            if (sec > 0) {
                hour = Math.floor(sec / 3600);
                minite = Math.floor((sec % 3600) / 60);
                second = Math.floor(sec % 60);
            }
            if (hour < 10) { hour = "0" + hour.toString(); }
            if (minite < 10) { minite = "0" + minite.toString(); }
            if (second < 10) { second = "0" + second.toString(); }
            //document.write(hour + " :" + minite + " :" + second);
            return " " + hour + ":" + minite + ":" + second;
        }
        var ResultTitle = ctx.CurrentGroup["ResultTitle"];
        var GroupTemplateId = ctx.CurrentGroup["GroupTemplateId"];
        var ItemTemplateId = ctx.CurrentGroup["ItemTemplateId"];
        var TableType = ctx.CurrentGroup["TableType"];
        if (
             (ResultTitle == null) &&
             (GroupTemplateId == null) &&
             (ItemTemplateId == null) &&
             (TableType == "RelevantResults")
           ) {
            $("#xslqryresult").show();
        }
    </script>
</head>
<body>
    <div>
        <script>
            document.write(SecondToTime(11445));
        </script>
    </div>
</body>
</html>
